Repository navigation
Conversation
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
migrate_config_splitkeeps every entry's metadata (category, reason, flaky, timeout, nestedNodeTest, isolateBlockSubtests, split). It discovers.mjsfiles and never deletes an entryNODE_COMPAT_MIGRATION_PREVIOUS_SUITE). A subtest keeps the metadata of the previous subtest with identical source, then of the one with the same name, then of the one with the same unique description. Matching by name alone put 50 unchanged 26.13.1 subtests with generated names (block_NN_block_NN) under another block's category. Changed generated-name subtests that keep metadata by position are listed undermatchedByPositiontarget/node-compat-migration-report.json). It fails when an entry has a missing source, a removed subtest or a split/unsplit conflict that needs a decisionsequential/http entries; their sources exist only underparallel/, where they are already configured as known gapsparallel/test-find-package-json.jssubtests to the names discovered from the vendored source and keeps their categoriesRunning the new migration on the current 22.14.0 suite would split 16 files and add 65 unevaluated
.mjsfiles. That output is not applied here.Node compatibility
From
report.mdgenerated on base 29f875e and on this head:Local checks: the head before a77af64 had
migrate_config_split ':tag:migration_contract'9/9,node_compat_report36 passed/1 ignored,node_compat -- --listgenerates 6907 cases,node_compat parallel__test_find_package_json_js7 passed/3 ignored, fmt and clippy (--all-targets -Dwarnings) clean.On a77af64 (source matching):
migrate_config_split ':tag:migration_contract'11/11, clippy on that target clean, a 22.14.0 rerun is unchanged (16 split, 65 added, nothing to review), and the 22.14.0 → 26.13.1 run leaves 0 subtests whose metadata differs from the unchanged 22.14.0 subtest they run, down from 50. The other checks above were not rerun on a77af64.On 85600f7 (review fix): unchanged same-name subtests skipped the
matchedByPositioncheck, so a same-name generated subtest whose source changed ({ passes(1); }→{ passes(2); }) kept its metadata without an entry. The check now runs before that shortcut. Classifications are unchanged. New contract testchanged_blocks_with_unchanged_names_are_reported: fails on a77af64 (11 passed, 1 failed), passes on 85600f7 (12/12). Fullmigrate_config_splitwith the 22.14.0 suite 39/39, clippy on that target clean. On the real 22.14.0 → 26.13.1 run,matchedByPositiongoes from 130 to 420 entries and the written config is byte-identical; the 22.14.0 rerun is unchanged. CI and the other checks above were not rerun on 85600f7.On d37588e (explicit mapping decisions): a changed generated-name subtest matched by position keeps its previous metadata only as a proposal. Every such subtest, excluded ones included, stays under
matchedByPositionand is also listed underpendingPositionDecisionswith the hashes and previous metadata a decision must record. The run fails until each one has an accepted decision inNODE_COMPAT_MIGRATION_DECISIONS:NODE_VERSIONand the BLAKE3 hash of the input config's parsedtestsobject; otherwise the run fails before writingpub). A mismatch leaves the subtest pending asstaleorpreviousMismatchbaseline-gap,moved(to runnable or baseline-gap targets) ortarget-change(with evidence) obligation; accepted changes are listed underobligationsunusedDecisionsand fail itChecks on d37588e:
migrate_config_split ':tag:migration_contract'23/23migrate_config_splitwith the 22.14.0 suite 50/50-Dwarningsonmigrate_config_split,agentic_ts,glue_benchmark,typescript_transform_latency,node_compat_reportandnode_compat_validate; fmt check cleanOn the real 22.14.0 → 26.13.1 run:
matchedByPositionsubtests pending (183 runnable, 59 known-gap, 148 node-internals, 25 wasi-impossible, 5 engine-difference)The 420 decisions themselves are not recorded here. CI and the other checks above were not rerun on d37588e.
On 1d4689c (review fix): a
movedTotarget was checked against the file entry's category even when the runner never runs that test. A changed runnable block could move its assertions to its own split parent, or to another split file, and be accepted while every subtest the runner selects there was excluded. A subtest listed under an excluded file that runs whole was accepted the same way. Targets now have to name the test the runner selects, matchingtests/node_compat.rs: afile#subtestof a split file with subtests, otherwise thefile. Other targets leave the decision pending with anobligationViolation.moved_assertions_must_land_on_a_test_the_runner_selects: fails on d37588e (23 passed, 1 failed). On d37588e a probe showed all 4 rejected cases accepted and the 3 controls accepted (runnable split subtest, runnable whole file, baseline-gap subtest)migrate_config_split ':tag:migration_contract'24/24, fullmigrate_config_splitwith the 22.14.0 suite 51/51, clippy-Dwarningson that target and fmt check cleanmatchedByPosition, 420 pending without decisions; the same 3-row control and repeat; rejection on the migrated config without a write); the 22.14.0 → 22.14.0 run is unchangedCI and the other checks above were not rerun on 1d4689c.